package com.kingtsoft.study.service;

import java.util.List;
import java.util.Map;
import com.github.pagehelper.PageInfo;
import com.kingtsoft.study.model.StudyHomework;

/**
 * Title:
 * Description:
 * Copyright: Copyright (c) 2017-03-30 下午3:00
 * Company: wondersgroup.com
 *
 * @author jerry.pan(潘健雷)
 * @version 1.0
 */
public interface StudyHomeworkService {


    /**
     * 获取作业
     *
     * @param id 作业主键
     * @return 作业
     * @author jerry.pan
     * @date 2017-03-30 15:08:11
     */
    StudyHomework load(String id);

    /**
     * 分页获取老师布置的作业的列表
     *
     * @return pageInfo
     * @author jerry.pan
     * @date 2017-03-30 15:08:11
     */
    PageInfo<StudyHomework> listPage(PageInfo page, StudyHomework studyHomework);


    /**
     * 获取老师布置的作业的列表
     *
     * @return list
     * @author jerry.pan
     * @date 2017-03-30 15:08:11
     */
    List<StudyHomework> listAll(StudyHomework studyHomework);

    /**
     * @param studyHomework
     * @Title: addHomework
     * @Description: 老师发布作业，保存homework
     * @author: shenlx
     * @return: void
     */
    public void addHomework(StudyHomework studyHomework);

    /**
     * 保存上传文件
     *
     * @param studyHomework
     * @author jerry.pan
     * @date 2017-04-01 15:38:22
     */
    StudyHomework saveUpload(StudyHomework studyHomework);

    /**
     * 删除上传文件
     *
     * @param
     * @author jerry.pan
     * @date 2017-04-01 15:38:22
     */
    Map deleteFile(String id);

}
